{extend name="main/index" /}
{block name="main"}
<div class="breadcrumbs" id="breadcrumbs">
    <script type="text/javascript">
        try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
    </script>

    <ul class="breadcrumb">
        <li>
            <i class="icon-home home-icon"></i>
            <a href="{:url('admin/index/index')}">首页</a>
        </li>

        <li>文章管理</li>
        <li class="active">用户详情</li>
    </ul><!-- .breadcrumb -->
</div>

<div class="container">
    <div class="row">
        <div class="col-md-10">

            <form class="form-horizontal" enctype="multipart/form-data" method="post" action="{:url('admin/customers/editCustomer')}">
                <input type="hidden" name="id" value="{$customer.id}">
                <div class="form-group">
                    <label class="col-sm-2 control-label">头像：</label>
                    <div class="col-sm-10 head">
                        <label>
                            <img src="{$customer.headimg === null ? '/static/index/images/head.jpg' : '/static/upload/head/'.$customer.headimg}" width="85" height="85" alt="" class="img-circle">
                            <input type="file" name="head" style="opacity: 0">
                        </label>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">用户名：</label>
                    <div class="col-sm-10">
                        <p class="form-control-static">{$customer.username}</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">邮箱：</label>
                    <div class="col-sm-10">
                        <p class="form-control-static">{$customer.email}</p>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">手机号：</label>
                    <div class="col-sm-10">
                        <p class="form-control-static">{$customer.tel}</p>
                    </div>
                </div>

                <div class="form-group">
                    <label for="name" class="col-sm-2 control-label">昵称：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="name" id="name" value="{$customer.name}" placeholder="昵称">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">性别：</label>
                    <div class="col-sm-10">
                        <label class="radio-inline">
                            <input type="radio" {$customer.sex == 1 ? 'checked' : ''} name="sex"  value="1"> 男
                        </label>
                        <label class="radio-inline">
                            <input type="radio" {$customer.sex == 0 ? 'checked' : ''} name="sex"  value="0"> 女
                        </label>
                    </div>
                </div>



                <div class="clearfix">
                    <div class="col-md-offset-3 col-md-9">
                        <button class="btn btn-info btn-doadd" type="submit">
                            <i class="icon-ok bigger-110"></i>
                            保存修改
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>




{/block}